# build stage
FROM node:lts-alpine
RUN npm install -g cnpm --registry=https://registry.npm.taobao.org
WORKDIR /app
COPY package*.json ./

COPY . .
RUN cnpm install
EXPOSE 9527
CMD ["cnpm", "run", "dev"]

